package threadAndRunnable;

import org.jetbrains.annotations.NotNull;

public class MyThreadTwo extends Thread {

    public MyThreadTwo() {
    }

    public MyThreadTwo(@NotNull String name) {
        super(name);
    }

    @Override
    public void run() {
        for (int i = 1; i <= 100; i++) {
            System.out.println(getName() + " i = " + i);
        }
    }
}
